/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.CTHoaDonDatTiecBLL;
import edu.nii.qlks.DataTransferObject.CTHoaDonDatTiecInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class CTHoaDonDatTiecControl {
    
    CTHoaDonDatTiecBLL CTHoaDonDatTiec = new CTHoaDonDatTiecBLL();
    
    public ArrayList LayDS() throws Exception{
        return CTHoaDonDatTiec.LayDS();
    }
        
    public void Insert(CTHoaDonDatTiecInfo cTHoaDonDatTiecInfo) throws Exception{
        CTHoaDonDatTiec.Insert(cTHoaDonDatTiecInfo);
    }
    
    public void Update(CTHoaDonDatTiecInfo cTHoaDonDatTiecInfo) throws Exception{
        CTHoaDonDatTiec.Update(cTHoaDonDatTiecInfo);
    }
    
    public void Delete(CTHoaDonDatTiecInfo cTHoaDonDatTiecInfo) throws Exception{
        CTHoaDonDatTiec.Delete(cTHoaDonDatTiecInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return CTHoaDonDatTiec.TaoMaTuDong(maGoc, batDau);
     }
}
